import 'package:flutter/material.dart';
import 'package:get/get_utils/src/extensions/widget_extensions.dart';
import 'package:short_drama/utils/colors.dart';

class EarningsCardWidget extends StatelessWidget {
  const EarningsCardWidget({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
        color: ClientColors.odffffff,
        borderRadius: BorderRadius.circular(8),
      ),
      child: Row(
        children: [
          Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Text(
                "我的收益",
                style: TextStyle(
                  color: Colors.white,
                  fontSize: 14,
                  fontWeight: FontWeight.w400,
                  // height: 20,
                ),
              ),
              Text(
                "9901",
                style: TextStyle(
                  color: Colors.white,
                  fontSize: 32,
                  fontWeight: FontWeight.bold,
                  // height: 45,
                ),
              ),
              Row(
                children: [
                  Text(
                    "昨日收益 0",
                    style: TextStyle(
                      color: Colors.white,
                      fontSize: 12,
                      fontWeight: FontWeight.normal,
                    ),
                  ),
                  SizedBox(width: 17),
                  Text(
                    "累计收益 9901",
                    style: TextStyle(
                      color: Colors.white,
                      fontSize: 12,
                      fontWeight: FontWeight.normal,
                    ),
                  ),
                ],
              ),
            ],
          ),
          Spacer(),
          Column(
            children: [
              GestureDetector(
                child: Container(
                  decoration: BoxDecoration(
                    color: ClientColors.oxFF0B9970,
                    borderRadius: BorderRadius.circular(19),
                  ),
                  padding: EdgeInsets.fromLTRB(16, 6, 16, 6),
                  child: Text(
                    "去提现",
                    style: TextStyle(
                      color: Colors.white,
                      fontSize: 14,
                      fontWeight: FontWeight.w400,
                    ),
                  ),
                ),
                onTap: () => {},
              ),
              SizedBox(height: 19),
              GestureDetector(
                child: Container(
                  decoration: BoxDecoration(
                    color: ClientColors.oxFF0B9970,
                    borderRadius: BorderRadius.circular(19),
                  ),
                  padding: EdgeInsets.fromLTRB(16, 6, 16, 6),
                  child: Text(
                    "去兑换",
                    style: TextStyle(
                      color: Colors.white,
                      fontSize: 14,
                      fontWeight: FontWeight.w400,
                    ),
                  ),
                ),
                onTap: () => {},
              ),
            ],
          ),
        ],
      ).paddingOnly(left: 16, right: 16, top: 19, bottom: 23),
    );
  }
}
